package com.wanxi.dao;

import com.wanxi.model.FiledModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Li
 * @Date 2023/4/27 21:24
 */
public class FiledDao {
    public List<FiledModel> getFiled() {
        List<FiledModel> filedList = new ArrayList<FiledModel>();
        String[] images = {"../img/f5.png","../img/gj.jpg","../img/cq.jpg"};
        String[] names = {"法律援助","国际商务事纠纷","商标保护"};
        for (int i = 0; i < images.length; i++) {
            filedList.add(FiledModel.builder()
                    .image(images[i])
                    .name(names[i])
                    .build());
        }
        return filedList;
    }

    public List<FiledModel> getFiled1() {
        List<FiledModel> filedList1 = new ArrayList<FiledModel>();
        String[] images = {"../img/af.jpg","../img/f4.png","../img/f3.png"};
        String[] names = {"境内外并购重组","借贷纠纷法律服务","婚姻家事法律服务"};
        for (int i = 0; i < images.length; i++) {
            filedList1.add(FiledModel.builder()
                    .image(images[i])
                    .name(names[i])
                    .build());
        }
        return filedList1;
    }

    public List<FiledModel> getFiledTitle() {
        List<FiledModel> filedTitles = new ArrayList<FiledModel>();
        String[] names = {"诉讼、仲裁法律服务","公司法律服务","金融资本法律服务","知识产权法律服务","国际法律服务","特色法律服务"};
        for (int i = 0; i < names.length; i++) {
            filedTitles.add(FiledModel.builder()
                    .name(names[i])
                    .build());
        }
        return filedTitles;
    }
}
